# -*- coding: utf-8 -*-

''' 格式的公共部分
'''

import re


patterns = [(re.compile('SH000...|SZ399...'),u'指数'),
            (re.compile('SH18....|SH5000..|SH500180|SH510...|SH000300|SZ18....|SZ159...'),u'基金'),
            (re.compile('SH600...|SH601...|SZ000...|SZ002...|SZ300'),u'股票'),
            (re.compile('SH0310...|SZ5800...'),u'权证'),
    ]

#patterns的紧凑模式
pattern1 =  re.compile('SH000...|SZ399...|SH18....|SH5000..|SH500180|SH510...|SH000300|SZ18....|SZ159...|SH600...|SH601...|SZ000...|SZ300|SZ002...|SH0310...|SZ5800...')

#不允许其tvolume为0的代码集合
pattern2 = re.compile('SH18....|SH5000..|SH500180|SH000300|SH600...|SH601...|SZ000...|SZ002...|SH0310...|SZ5800...')

